* {
    padding: 0;
    margin: 0;
}

body,
html {
    width: 100%;
}

ul,
li {
    list-style: none;
}

.auto-img {
    width: 100%;
    height: auto;
    display: block;
}


nav {
    width: 100%;
    height: 50px;
    padding: 10px;
    display: flex;
    justify-content: space-around;
    align-items: end;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 10;

    &::before {
        content: "";
        position: absolute;
        top: 19px;
        left: 27px;
        background: url('../images/home-common.png') no-repeat -1px -1px;
        width: 28px;
        height: 28px;
        z-index: 1;
        background-size: 20px;
    }

    .search {
        width: 70%;
        height: 20px;
        border-radius: 25px;
        padding: 5px 25px;
        outline: 0;
        border: 0;
    }

    .username {
        width: 30px;
        font-size: 12px;
        color: white;
        position: relative;


        &::before {
            content: "";
            position: absolute;
            bottom: 15px;
            left: 3px;
            background: url('../images/home-common.png') no-repeat 0 -23px;
            width: 40px;
            height: 44px;
            background-size: 25px;
        }
    }
}

.banner {
    width: 100%;
    margin-top: -50px;
    overflow: hidden;
    position: relative;



    .img-box {
        width: 600%;
        transform: translateX(-375px);
        transition: transform 1s;

        img {
            width: 16.6666%;
            white-space: normal;
            float: left;
        }

    }


    &>ul {
        display: flex;
        position: absolute;
        bottom: 45px;
        right: 10px;

        &>.active {
            width: 20px;
        }

        li {
            width: 10px;
            height: 10px;
            background-color: white;
            opacity: 0.7;
            border-radius: 5px;
            margin: 0 5px;

        }
    }
}




main {
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;

    .introduction {
        width: 100%;
        height: 80px;
        background-color: white;
        padding: 5px 10px;
        margin-top: -40px;
        border-radius: 10px;
        box-sizing: border-box;
        font-size: 12px;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        position: relative;
        z-index: 1;

        li {
            position: relative;

            span {
                position: absolute;
                top: -50px;
                left: 0;
            }

            &:nth-of-type(1) {
                span {
                    background: url('../images/home-fivemain.png') no-repeat -14px -15px;
                    width: 52px;
                    height: 58px;
                }
            }

            &:nth-of-type(2) {
                span {
                    background: url('../images/home-fivemain.png') no-repeat -5px -81px;
                    width: 70px;
                    height: 54px;
                    background-size: 70px;
                    left: -4px;
                }
            }

            &:nth-of-type(3) {
                span {
                    background: url('../images/home-fivemain.png') no-repeat -7px -138px;
                    width: 66px;
                    height: 66px;
                    background-size: 65px;
                    left: -9px;
                }
            }

            &:nth-of-type(4) {
                span {
                    background: url('../images/home-fivemain.png') no-repeat -6px -202px;
                    width: 68px;
                    height: 55px;
                    background-size: 65px;
                    left: -9px;
                }
            }

            &:nth-of-type(5) {
                span {
                    background: url('../images/home-fivemain.png') no-repeat -7px -267px;
                    width: 66px;
                    height: 71px;
                    background-size: 65px;
                    left: -9px;
                }
            }
        }


    }

    .reserve {
        background-color: #fafafc;


        .commonly-used {
            width: 100%;
            border-radius: 10px;
            overflow: hidden;
            font-size: 12px;
            text-align: center;
            line-height: 38px;
            color: white;
            margin-top: 20px;

            li {
                width: 25%;
                height: 38px;
                border: 1px solid white;
                box-sizing: border-box;
            }

            div {
                width: 100%;
                display: flex;
                justify-content: space-between;
            }

            .hotel {
                background-color: #fa7252;

                li {

                    &:nth-of-type(1) {
                        background: url(../images/grid-nav-items-hotel.png) no-repeat 22px 10px / cover;
                        background-size: 61px;
                    }

                    &:nth-of-type(2) {
                        background: url(../images/grid-nav-items-minsu.png) no-repeat 0 20px / cover;
                        background-size: 30px;
                    }

                    &:nth-of-type(4) {
                        background: url(../images/grid-nav-items-jhj.png) no-repeat 26px 14px / cover;
                        background-size: 61px;
                    }
                }
            }

            .flight {
                background-color: #4d9eed;

                li {
                    &:nth-of-type(1) {
                        background: url(../images/grid-nav-items-flight.png) no-repeat 22px 10px / cover;
                        background-size: 61px;
                    }
                }
            }

            .travel {
                background-color: #46c98f;

                li {

                    &:nth-of-type(1) {
                        background: url(../images/grid-nav-items-travel.png) no-repeat 22px 10px / cover;
                        background-size: 61px;
                    }

                    &:nth-of-type(2) {
                        background: url(../images/grid-nav-items-dingzhi.png) no-repeat 0 20px / cover;
                        background-size: 30px;
                    }
                }
            }
        }


        .more {
            color: black;
            font-size: 12px;
            margin-top: 20px;

            div {
                width: 100%;
                display: flex;
                justify-content: space-between;
                text-align: center;
            }


            li {
                width: 20%;
            }

            span {
                display: block;
                width: 42px;
                height: 47px;
                background-color: red;
                opacity: .5;
                margin: 0 auto;
            }

            .ziyou {
                li {
                    &:nth-of-type(1) {
                        span {
                            background: url('../images/un_ico_subnav.png') no-repeat -7px -6px;
                            width: 42px;
                            height: 47px;
                        }
                    }

                    &:nth-of-type(2) {
                        span {
                            background: url('../images/un_ico_subnav.png') no-repeat -10px -65px;
                            width: 36px;
                            height: 47px;
                        }
                    }

                    &:nth-of-type(3) {
                        span {
                            background: url('../images/un_ico_subnav.png') no-repeat -8px -118px;
                            width: 40px;
                            height: 47px;
                        }
                    }

                    &:nth-of-type(4) {
                        span {
                            background: url('../images/un_ico_subnav.png') no-repeat -7px -172px;
                            width: 40px;
                            height: 47px;
                            position: relative;

                        }
                    }

                    &:nth-of-type(5) {
                        span {
                            background: url('../images/un_ico_subnav.png') no-repeat -5px -231px;
                            width: 46px;
                            height: 47px;
                        }
                    }

                }
            }

            .tejia {
                margin-top: 10px;
                padding-bottom: 20px;

                li {
                    &:nth-of-type(1) {
                        span {
                            background: url('../images/un_ico_subnav.png') no-repeat -9px -288px;
                            width: 39px;
                            height: 44px;
                        }
                    }

                    &:nth-of-type(2) {
                        span {
                            background: url('../images/un_ico_subnav.png') no-repeat -6px -344px;
                            width: 44px;
                            height: 44px;
                        }
                    }

                    &:nth-of-type(3) {
                        span {
                            background: url('../images/un_ico_subnav.png') no-repeat -6px -400px;
                            width: 44px;
                            height: 44px;
                        }
                    }

                    &:nth-of-type(4) {
                        span {
                            background: url('../images/un_ico_subnav.png') no-repeat -7px -457px;
                            width: 41px;
                            height: 44px;

                            &:after {
                                color: white;
                                content: "NEW";
                                position: relative;
                                top: -5px;
                                right: -25px;
                                padding: 2px 4px;
                                border-radius: 7px;
                                background-color: #fa5448;
                            }
                        }
                    }

                    &:nth-of-type(5) {
                        span {
                            background: url('../images/un_ico_subnav.png') no-repeat -7px -510px;
                            width: 43px;
                            height: 44px;
                        }
                    }

                }
            }
        }



    }

    .discount {
        width: 100%;
        margin-top: 20px;
        overflow: hidden;

        .head {
            position: relative;
            background: url('../images/un_home_text.png') no-repeat 0 0;
            height: 29px;


            span {
                position: absolute;
                top: 0;
                right: 0;
                padding: 0 10px;
                background-color: #ff5374;
                border-radius: 10px;
                color: white;
            }
        }

        &>.left {
            width: 49%;
            float: left;
            margin-top: 20px;
            background-color: #f9f9f9;

            .img-box {
                width: 100%;
            }

            .text-box {
                font-size: 12px;
                color: #fe7181;
                margin: 10px 0;

                p {
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    font-size: 15px;
                    color: black;
                    margin-bottom: 10px;
                }

                span {
                    font-size: 15px;

                }
            }
        }

        &>.right {
            width: 49%;
            float: right;
            margin-top: 20px;
            padding: 0 5px;
            box-sizing: border-box;
            font-size: 12px;


            .top {
                width: 100%;
                height: 85px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                background-color: #f9f9f9;

                .text-box {
                    width: 53%;

                    p {
                        &:nth-child(1) {
                            color: #fd3850;
                            font-weight: bold;
                        }
                    }
                }

                .img-box {
                    width: 40%;
                }
            }

            .bottom {
                width: 100%;
                height: 100px;
                display: flex;
                justify-content: space-between;
                text-align: center;
                margin-top: 5px;

                &>.left,
                &>.right {
                    padding-top: 10px;
                    width: 49%;
                    background-color: #f9f9f9;


                }

                img {
                    width: 60%;
                    margin: 0 auto;
                }


            }
        }
    }

    .zhuangshi {
        width: 100%;
        height: 10px;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        background-color: #fafafc;
        margin-top: 20px;
    }

    .activity {
        width: 100%;
        margin-top: 10px;
        overflow: hidden;

        .head {
            position: relative;
            background: url('../images/un_home_text.png') no-repeat 0 -39px;
            height: 30px;

            span {
                position: absolute;
                top: 0;
                right: 0;
                padding: 0 10px;
                background-color: #ff5374;
                border-radius: 10px;
                color: white;
            }

            .advertising-icon {
                width: 35px;
                position: absolute;
                top: 0;
                left: 160px;
            }

        }

        .content {
            width: 100%;
            margin-top: 20px;
            border-top: 1px solid #e0e0e0;

            img {
                float: left;
                width: 50%;
                box-sizing: border-box;
                border-bottom: 1px solid #e0e0e0;

                &:nth-child(odd) {
                    border-right: 1px solid #e0e0e0;
                }
            }
        }
    }

    .download {
        width: 100%;
        text-align: center;
        padding-top: 10px;

        display: flex;
        justify-content: space-around;
        font-size: 12px;

        img {
            width: 25%;
            margin: 0 auto;
        }
    }

}

footer {
    padding: 20px 0;
    margin-top: 20px;
    background-color: #fafafc;
    border-top: 1px solid #e0e0e0;

    text-align: center;
    font-size: 12px;
}